StringScanner.SkipToAlpha Function

Syntax

Result_Flag as L = SkipToAlpha as l()

Arguments

Result_Flag

True if an alphabetic character was found.

Description

Skip until a alphabetic character is encountered. Return true if successful.

Discussion

The <StringScanner>.SkipOverAlpha() function moves the offset to the next alphabetic character. The offset does not move if it is already pointing to a alphabetic character.

Example

dim scanner as P
dim txt as C
txt = <<%text%
This is wonderful prose written
by a technical writer of note.
%text%
scanner = stringscanner.create(txt)
scanner.scanover(4)
? scanner.skiptoalpha()
= .T.
? scanner.GetToOffset()
= "This "
? scanner.getremainder()
= is wonderful prose written
by a technical writer of note.

See Also